# Contributor: Hoang Nguyen <folliekazetani@protonmail.com>
# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
pkgname=glow
pkgver=1.4.1
pkgrel=4
pkgdesc="Markdown renderer on the CLI, with pizzazz"
url="https://github.com/charmbracelet/glow"
arch="all"
license="MIT"
makedepends="go"
source="https://github.com/charmbracelet/glow/archive/v$pkgver/glow-$pkgver.tar.gz"

build() {
	go build -v -o bin/$pkgname -ldflags "-X main.Version=$pkgver"
}

check() {
	go test -v ./...
}

package() {
	install -Dm755 bin/$pkgname "$pkgdir"/usr/bin/$pkgname
}

sha512sums="
cb7bb7b3c65c70906ea59d85382b8cc32e900ab0276c3ecc4c79bce4c9ef2539043cbd6e3c7600b1622367ba667eaa65b553f60bc56db5af719d183488146721  glow-1.4.1.tar.gz
"
